﻿<Window x:Class="ContextMenuSample.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
    Title="DynamicDataDisplay Context Menu Sample" Height="300" Width="300">
	<Grid>
		<d3:ChartPlotter Name="plotter">

			<d3:PositionalViewportUIContainer Name="container" Position="0.45,0.45">
				<Rectangle Width="50" Height="50" Fill="Cornsilk" Stroke="Black" Name="rectangle">
					
					<d3:DefaultContextMenu.PlotterContextMenu>
						<d3:ObjectCollection>
							<MenuItem Header="Change Color" Click="MenuItem_Click"/>
						</d3:ObjectCollection>
					</d3:DefaultContextMenu.PlotterContextMenu>
				
				</Rectangle>
			</d3:PositionalViewportUIContainer>

			<d3:AxisCursorGraph/>
		</d3:ChartPlotter>
	</Grid>
</Window>
